First principles investigation of L-alanine in terahertz region