On the existence of maximizers for a family of restriction theorems