how to calculate decibels from frequency