Pulsating stars in NGC 6231 Frequency analysis and photometric mode identification near the main sequence