Interaction of selection and drift in molecular evolution