what does a criminal defense lawyer do