Polish president says foreign media took LGBT comments 'out of context'