I'd say trying to transfer to Berkeley would generally be a smart choice, since it has the top engineering department of all of the UCs and a well-respected education overall. However, only do so if you understand the type of environment you'd be moving into. Baltimore may not be all that nice, but I can promise you that there are very few places like Berkeley, which can be both a good and bad thing. I'd say visit it if you could, or at the very least, ask Berkeley students on this website what Berkeley (the city, not necessarily the school) is like.
If you want to transfer to UCSD, I don't see why you shouldn't try -- you're not committing to anything just yet, and how many other chances will you get? It's one of the top three UCs (after Berkeley and UCLA), and, as long as you're looking for work in CA, going to one of the top three UCs gives you the competitive edge. Berkeley may give you a bigger competitive edge -- and let's not forget that it's next to Silicon Valley, where many of your job opportunities will be-- but to each his own. If you plan on seeking work outside of CA, I'd try Berkeley, UCLA and Stanford. All three have pretty well-known names; Berkeley and Stanford are really well-known in the engineering world; Stanford and UCLA are in really nice locations; and depending upon how much money you/your parents make, Stanford is known to give some really great financial aid packages. I'd try these three along with UCSD.
Particularly if you plan on finding a job outside of CA, I wouldn't necessarily recommend applying to the other UCs.