Coarse-grained molecular dynamics simulations of membrane proteins and peptides