End domain states and magnetization reversal in submicron magnetic structures