Irregular sets and conditional variational principles in dynamical systems