Variational principles are a powerful tool also for formulating field theories