Development of predictable palladium based optomechanical hydrogen sensors