Security grilles for doors and windows