Antibacterial activity and mode of action of ferulic and gallic acids against pathogenic bacteria.